
let currentRefObj;
function useRef(initialValue) {
    currentRefObj = currentRefObj || { current: initialValue }
    return currentRefObj;
}

function TextInputWithFocusButton() {
    let refObject = useRef(null);//{current:null}
    console.log(refObject.current)//null
    refObject.current = Date.now();
}
debugger
TextInputWithFocusButton();
TextInputWithFocusButton();
TextInputWithFocusButton();